<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../../include/admincontent.jsp" %>
<div id="Content">
    <div class="help">
        <b>应聘者姓名:</b>${uname}&emsp;
        <b>面试得分:</b>${user.point}&emsp;
        <b>通过情况:</b>${user.result}&emsp;
    </div>
    <table class="treeTable inputform">
        <thead>
        <tr>
            <td width="30">序号</td>
            <td width="80">应聘者姓名</td>
            <td width="80">面试得分</td>
            <td width="80">评分权重</td>
            <td width="80">通过情况</td>
            <td>面试评价</td>
            <td width="80">面试人工号</td>
            <td width="80">面试人姓名</td>
            <td width="120">录入时间</td>
        </tr>
        </thead>
        <tbody>
        <c:forEach var="_item" items="${results}" varStatus="item">
            <tr>
                <td>${item.index+1}</td>
                <td>${uname}</td>
                <td>${_item.point}</td>
                <td>${_item.uweight}</td>
                <td>${_item.result}</td>
                <td>${_item.remark}</td>
                <td>${_item.code}</td>
                <td>${_item.uname}</td>
                <td><fmt:formatDate value="${_item.addtime}" pattern="yyyy-MM-dd HH:mm"/></td>
            </tr>
        </c:forEach>
        </tbody>
    </table>
</div>
<script type="text/javascript">
    $(document).ready(function () {
        $('.treeTable tbody tr').each(function () {
            if ($(this).find('td:eq(4)').text() == '3') {
                $(this).find('td:eq(4)').html('不通过');
            } else {
                $(this).find('td:eq(4)').html('通过');
            }
        });
    });
</script>
</body>
</html>
